package cn.antblog.multi.datasource.properties;

import cn.antblog.multi.datasource.constant.Const;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author yangjy
 * @version 1.0
 * @description: 主要用于存储SpringBoot配置文件中配置的数据源属性 读取配置文件信息
 * @date 2022/11/22 11:06
 */
@Component
@ConfigurationProperties(prefix = Const.CONFIG_PREFIX)
public class MultiDataSourceProperties {

    private Map<String, DataSourceProp> dataSourcePropMap;

    public Map<String, DataSourceProp> getDataSourcePropMap() {
        return dataSourcePropMap;
    }
    public void setDataSourcePropMap(Map<String, DataSourceProp> dataSourcePropMap) {
        this.dataSourcePropMap = dataSourcePropMap;
    }

}
